package com.itstyle.seckill.topic.desinger.design_xw.command;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 20:57
 * @Description:
 */
public class Invoker {


    private Command command;
    public Invoker(Command command)
    {
        this.command=command;
    }

    public void call()
    {
        System.out.println("调用者执行命令command...");
        command.execute();
    }
}
